package com.misolab.util.json;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import org.json.JSONObject;
import org.json.JSONString;

public class Content implements JSONString {

	Map<String, Object> data; 
	
	public Content(String date) {
		super();
		data = new HashMap<String, Object>();
		data.put("date", date);
	}
	
	public void add(String level, ArrayList<String> datas){
		data.put(level, datas);
	}


	@Override
	public String toJSONString() {
		return new JSONObject(data).toString();
	}

}
